function [image, rowsZ, colsZ] = thresholdRangeImage(imageZ, closestPoint, range)
%Add a threshold in order to find the briefcase. Only a small
%subsection of the briefcase
thresholdPoint = closestPoint -range;

%Threshold the image
%Find the briefcase using thresholds
[rowsZ, colsZ] = find(imageZ <closestPoint & imageZ >thresholdPoint);

%Set the areas where the range between the camera and the points
%is very close to a value of 1, else 0
image = zeros(size(imageZ));
for i = 1:size(rowsZ)
image(rowsZ(i),colsZ(i)) =1; 
end

